package com.concurrent.water.machine;

import java.math.BigDecimal;
import java.util.Collection;

public class User {
    /**
     * 用户余额
     */
    private BigDecimal balance;
    /**
     * 账单推送
     */
    private BillManager<BillDO> billManager;

    public User(BigDecimal money, BillManager<BillDO> billManager) {
        this.balance = money;
        this.billManager = billManager;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public Collection<BillDO> getBills() {
        return billManager.getBills();
    }
}
